<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<head>
    <meta charset="utf-8"/>
    <title>保险代理后台管理系统</title>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport"/>
    <jsp:include page="../common/header.jsp"/>
    <%@include file="../common/taglib.jsp" %>

    <!-- ================== 单独作用于本页表格td ================== -->
    <style>
        tr td:first-child {
            text-align: center;
        }
    </style>
    <!-- ================== 单独作用于本页表格td ================== -->

</head>
<body>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade page-sidebar-fixed page-header-fixed">
    <jsp:include page="../common/top.jsp"/>

    <!-- begin #sidebar -->
    <jsp:include page="../common/sitebar.jsp"/>
    <div class="sidebar-bg"></div>
    <!-- end #sidebar -->

    <!-- begin #content -->
    <div id="content" class="content">

        <!-- begin row -->
        <div class="row">
            <!-- begin col-12 -->
            <div class="col-md-12">
                <!-- begin panel -->
                <div class="panel panel-inverse">

                    <section class="pad-top-10 pad-bottom-20">
                        <ul id="myTab" class="nav nav-tabs">
                            <li class="active"><a href="#tab1" onclick="showTodo()" data-toggle="tab">待办任务</a></li>
                            <li><a href="#tab2" onclick="showDone()" data-toggle="tab">已办任务</a></li>
                        </ul>

                    <div class="form-wrap mar-bottom-0">
                    <div class="tab-content">
                        <div id="tab1" class="tab-pane fade active in">
                            <section>
                                <table id="modeltable" class="table table-striped table-bordered"
                                       style="word-break:break-all;word-wrap:break-word">
                                    <thead>
                                    <tr>
                                        <th width="40">序号</th>
                                        <th>任务名称</th>
                                        <th>提交时间</th>
                                        <th>提交人</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                </table>
                            </section>
                        </div>
                        <div id="tab2" class="tab-pane fade">
                            <section>
                                <table id="modeltable2" class="table table-striped table-bordered"
                                       style="word-break:break-all;word-wrap:break-word">
                                    <thead>
                                    <tr>
                                        <th width="40">序号</th>
                                        <th>任务名称</th>
                                        <th>提交人</th>
                                        <th>提交时间</th>
                                        <th>处理时间</th>
                                        <th>处理人</th>
                                    </tr>
                                    </thead>
                                </table>
                            </section>
                        </div>

						<input type="hidden" id="lendTime" value="${landTime }">
						<input type="hidden" id="tid" value="${tid }">

					<div class="modal fade" id="modal-dialog">
								<div class="modal-dialog modal-sm">
									<div class="modal-content">
										<div class="modal-header">
											<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
											<h4 class="modal-title">温馨提示</h4>
										</div>
										<div class="modal-body">
											为了安全请去修改密码!
										</div>
										<div class="modal-footer">
											<a href="javascript:;" onclick="toEditPwd()" class="btn btn-primary" data-dismiss="modal">确定</a>
											<a href="javascript:;" onclick="toEditLand()" class="btn btn-default" data-dismiss="modal">取消</a>
										</div>
									</div>
								</div>
					</div>

                    </div>
                    </div>
                    </section>
                </div>
                <!-- end panel -->
            </div>
            <!-- end col-12 -->
        </div>
        <!-- end row -->
    </div>
    <!-- end #content -->
</div>
<!-- end page container -->
<jsp:include page="../common/footer.jsp"/>
<script src="${ctx}/static/js/task/task_list.js"></script>
</body>
<script>
$(document).ready(function (){
	var str = $("#lendTime").val();
	if(str==0){
		$("#modal-dialog").modal("show");
	}
})

function toEditLand(){
	var tid = $("#tid").val();
	$.ajax({
		type:"post",
		url:"<%=path%>/sysuser/editLand",
		data:{tid:tid},
		success:function (msg){
			
		}
	});
}

function toEditPwd(){
	$("#modal-checkPwd").modal("show");
}

</script>
</html>
